package com.akuhome.resource.DO.check.use;

import com.akuhome.resource.DO.check.FoodCheck;

import java.sql.Timestamp;
import java.util.Objects;

public class FoodActual {
    Integer id;
    //就餐日期
    String date;
    //就餐情况
    String detail;
    //备注
    String other;
    Timestamp createTime;
    Timestamp updateTime;
    Integer foodCheckId;

    public FoodActual() {
    }

    public FoodActual(String date, String detail, String other) {
        this.date = date;
        this.detail = detail;
        this.other = other;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getOther() {
        return other;
    }

    public void setOther(String other) {
        this.other = other;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFoodCheckId() {
        return foodCheckId;
    }

    public void setFoodCheckId(Integer foodCheckId) {
        this.foodCheckId = foodCheckId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FoodActual that = (FoodActual) o;
        return Objects.equals(id, that.id);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id);
    }
}
